﻿@using Janus.Mes.VO;
@model IEnumerable<CustomSampHVO>
@{
    Layout = null;
    int i = 1;
    ViewBag.ViewTitle = "自定义抽样表";
    var SearchParma = ViewData["SearchParma"] as CustomSampHVO ?? new CustomSampHVO();
}
<form id="pagerForm" method="get" action="Quality/SampleDefin/index?action=page&OpID=@ViewData["OperateID"]">
    <input type="hidden" name="pageNum" value="1" />
    <input type="hidden" name="numPerPage" value="@ViewData["pageSize"]" />
    <input type="hidden" name="RowCount" value="@ViewData["RowCount"]" />
    <input type="hidden" name="DefectLCode" value="@SearchParma.CustSCode" />
    <input type="hidden" name="DefectLName" value="@SearchParma.CustSName" />
</form>
<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" id="Form_@ViewData["CurrentController"]" action="Quality/SampleDefin/index?action=search&OpID=@ViewData["OperateID"]"
          method="post">
        <div class="searchBar">
            <table class="searchContent">
                <tr>
                    <td>
                        抽样表编号：
                    </td>
                    <td>
                        @Html.TextBox("CustSCode", SearchParma.CustSCode)
                    </td>
                    <td>
                        抽样表名称：
                    </td>
                    <td>
                        @Html.TextBox("CustSName", SearchParma.CustSName)
                    </td>
                    <td align="right">
                        <div class="subBar">
                            <ul>
                                <li>
                                    <div class="buttonActive">
                                        <div class="buttonContent">
                                            <button type="submit" name="submit">
                                                查询
                                            </button>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</div>
<div class="pageContent">
    @Html.Partial("Buttons", ViewData["CurrentPageButtons"])
    <table class="treetable list" width="100%" layouth="95">
        <thead>
            <tr class="header">
                <th width="30px">序号</th>
                <th>抽样表编号</th>
                <th>抽样表名称</th>
                <th>采样表</th>
                <th>启用</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr target="SampleDefin_id" rel="@item.CustSCode">
                    <td>
                        @i
                    </td>
                    <td>@item.CustSCode</td>
                    <td>
                        @item.CustSName
                    </td>
                    <td>
                        @(item.SampParameter==1 ? "严格性/AQL" : "严格性")
                    </td>
                    <td>
                        <input type="checkbox" checked="@item.IsEnable" onclick="return false" />
                    </td>
                    <td>
                        @*@Html.Partial("Button3", null)*@
                    </td>
                </tr>
                i += 1;
            }
        </tbody>
       
    </table>
</div>
@Html.Partial("PageBar")

